<?php
if (count($this->errors) >0) {
	$errorTitle = "Oopz! An error occured!";
	if (!($this->displayErrorTitle)){		
		$errorTitle = "";
	}	
	echo "<div class='errorbox'><h2>".$errorTitle."</h2>\n";
	echo "<div class='errormsgs'>";
	echo '<ul>';
	foreach ($this->errors as $key => $errorMessage) {
		echo "<li>$errorMessage</li>\n  ";
	}
	echo '</ul>';
	echo '</div></div>';
}
?>	